package com.boot.main.controller;

import com.boot.main.service.ICityService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/v1/api")
@Api(tags = "城市管理")
public class CityController {
    @Resource
    private ICityService cityService;

    @RequestMapping(value = "/city", method = RequestMethod.GET)
    @ApiOperation(value = "获取城市列表")
    public Object getCity(){
        return cityService.getCity();
    }
}
